/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Service;

import java.util.List;
import javabeans.GroupPlan;
import javabeans.Member;
import javabeans.Plan;

/**
 *
 * @author liweijiao
 */
public interface MemberService {

    boolean register(String email, String password, String firstname, String lastname, String gender);

    int login(String email, String password);

    Member getMember(String email);

    public boolean checkEmail(String email);

    public Plan addPlan(String planname, String descrip, String email);

    public GroupPlan createGroupPlan(String planname, String descrip, String email);

    public List<GroupPlan> getGroupPlanList(int userID);

    public boolean joinGroup(Member member, GroupPlan groupplan);

    public boolean leaveGroup(Member member, GroupPlan groupplan);
}
